﻿Public Class reportTaskActivity

    Private Sub Test_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        GenericAdministrator.loadComboBox(Me.cboProyecto, ProjectAdministrator.search(), "id", "name")
        GenericAdministrator.loadComboBox(Me.cboActividad, GenericAdministrator.searchDataByFilter(New Activity()), "id", "name")

        'TODO: esta línea de código carga datos en la tabla 'DataSet2.TASK_ACTIVITY' Puede moverla o quitarla según sea necesario.
        
    End Sub

    Private Sub btnMostrar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnMostrar.Click
        Dim projectId As Integer = Me.cboProyecto.SelectedValue
        Dim activityId As Integer = Me.cboActividad.SelectedValue
        Me.TASK_ACTIVITYTableAdapter.Fill(Me.DataSet2.TASK_ACTIVITY, projectId, activityId)

        Me.ReportViewer1.RefreshReport()
    End Sub
End Class